package com.jl.util;

import java.math.BigInteger;


/**
 * @version 2012.10.27
 * @author LuHongjun
 */
public class DecUtil {
    public static boolean isDecimal(char ch){
        if(ch >= '0' && ch <='9'){
            return true;
        }
        return false;
    }
    
    public static String toHexString(String dec){
    	BigInteger bi = new BigInteger(dec, 10);
    	return bi.toString(16).toUpperCase();
    }
}
